package com.ruoyi.generator.mapper;

import com.ruoyi.generator.domain.WorkOrder;
import com.ruoyi.generator.entity.ClUser;
import com.ruoyi.generator.entity.File;
import com.ruoyi.generator.entity.ScheduleFile;
import com.ruoyi.generator.entity.WorkOrderFile;
import com.ruoyi.generator.entity.vo.WorkOrderVO;

import java.util.List;

public interface WorkOrderMapper {
    int insertWorkOrder(WorkOrder workOrder);

    int insertSfile(ScheduleFile scheduleFile);
    int updateWorkOrder(WorkOrder workOrder);
    int updateWsWorkOrder(WorkOrderVO workOrder);

    String selectWorkFile(Long id);
    int deleteWorkOrderById(Long id);
    WorkOrder selectWorkOrderById(Long id);
    List<WorkOrder> selectAllWorkOrders();
    List<WorkOrderVO> selectAllWushuiWorkOrders(ClUser cl);
    List<WorkOrderVO> selectAllWushuiWorkOrdersAll(WorkOrderVO workOrderVO);
    ClUser getUserDeptinfo(ClUser cl);
    void insertFileUpload(WorkOrderFile workOrderFile);
    void insertFile(File file);
    void createWorkOrder(WorkOrderVO workOrderVO);
    void updateFileId(WorkOrderFile workOrderVO);
    /**
     * 查询文件上传列表
     *
     * @param workOrderFile 文件上传
     * @return 文件上传集合
     */
    public List<WorkOrderFile> selectWorkOrderFileList(WorkOrderFile workOrderFile);
}
